<link rel="stylesheet" href="__STATIC__/plugs/lay-module/treetable-lay/treetable.css?v={:time()}" media="all">
<link rel="stylesheet" href="__STATIC__/module/css/button.css" media="all">

<div class="layuimini-container">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('dept/add')}"
               data-auth-edit="{:auth('dept/edit')}"
               data-auth-delete="{:auth('dept/delete')}"
               lay-filter="currentTable">
        </table>


    <script type="text/html" id="toolbar">
        <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i> </button>
            <button id="btn_expand" class="layui-btn layui-btn-sm layui-btn-success" > 展开</button>
            <button id="btn_fold" class="layui-btn layui-btn-sm layuimini-btn-primary" > 折叠</button>
        <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('dept/add')}layui-hide{/if}" data-open="dept/add" data-title="添加" data-full="true"><i class="fa fa-plus"></i> 添加</button>
        <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('dept/delete')}layui-hide{/if}" data-url="dept/delete" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
    </script>
</div>
